﻿using SqlSugar;

namespace Nuclear.Models.DbModels;

[SugarTable(TableName = "eb_system_admin")]
public class CrmebSystemAdmin
{
    [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
    public int Id { get; set; }

    [SugarColumn(IsNullable = false, ColumnName = "account")]
    public string Account { get; set; }

    [SugarColumn(IsNullable = false, ColumnName = "pwd")]
    public string Password { get; set; }

    [SugarColumn(IsNullable = false, ColumnName = "real_name")]
    public string RealName { get; set; }

    [SugarColumn(IsNullable = false, ColumnName = "header_image")]
    public string HeaderImage { get; set; }

    [SugarColumn(IsNullable = false, ColumnName = "roles")]
    public string Roles { get; set; }

    [SugarColumn(IsNullable = true, ColumnName = "last_ip")]
    public string? LastIp { get; set; }

    [SugarColumn(IsNullable = false, ColumnName = "login_count")]
    public int LoginCount { get; set; }

    [SugarColumn(IsNullable = false, ColumnName = "level")]
    public int Level { get; set; }

    [SugarColumn(IsNullable = false, ColumnName = "status")]
    public int Status { get; set; }

    [SugarColumn(IsNullable = false, ColumnName = "is_del")]
    public short IsDeleted { get; set; }

    [SugarColumn(IsNullable = false, ColumnName = "phone")]
    public string Phone { get; set; }

    [SugarColumn(IsNullable = false, ColumnName = "is_sms")]
    public bool IsReceivingSms { get; set; }

    [SugarColumn(IsNullable = false, ColumnName = "type")]
    public int Type { get; set; }

    [SugarColumn(IsNullable = false, ColumnName = "mer_id")]
    public int MerchantId { get; set; }

    [SugarColumn(IsNullable = false, ColumnName = "create_time")]
    public DateTime CreateTime { get; set; }

    [SugarColumn(IsNullable = false, ColumnName = "update_time")]
    public DateTime UpdateTime { get; set; }
}